/**
 * Copyright (C) T-Systems International, 2013-2014
 *
 * The copyright of the computer program herein is the property of
 * T-Systems International. The program may be used and/or copied
 * only with the written permission of T-Systems International or in
 * accordance with the terms and conditions stipulated in the
 * agreement/contract under which the program has been supplied.
 *
 * $Author$
 * $Date$
 * $Rev$
 */
package com.tsystems.migdb;

import org.quartz.SchedulerException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String [] args) throws InterruptedException, SchedulerException {
        ApplicationContext context = new ClassPathXmlApplicationContext("/scheduler-context.xml");
        JobManager lineProcessingJobManager = context.getBean("lineProcessingJobManager", JobManager.class);
        lineProcessingJobManager.register(5000);
        JobManager echoJobManager = context.getBean("echoJobManager", JobManager.class);
        echoJobManager.register(5000);
        while (true) {
            Thread.sleep(1000);
        }
    }

}